﻿using System;
using UnityEngine;

// Token: 0x02000224 RID: 548
public class H_Item : MonoBehaviour
{
	// Token: 0x1700017C RID: 380
	// (get) Token: 0x06000EC9 RID: 3785 RVA: 0x0005CAD4 File Offset: 0x0005ACD4
	// (set) Token: 0x06000ECA RID: 3786 RVA: 0x0005CADC File Offset: 0x0005ACDC
	public Animator animator { get; private set; }

	// Token: 0x06000ECB RID: 3787 RVA: 0x0005CAE8 File Offset: 0x0005ACE8
	private void Awake()
	{
		this.animator = base.GetComponent<Animator>();
	}

	// Token: 0x06000ECC RID: 3788 RVA: 0x0005CAF8 File Offset: 0x0005ACF8
	public void SetTarget(Transform target)
	{
		this.target = target;
	}

	// Token: 0x06000ECD RID: 3789 RVA: 0x0005CB04 File Offset: 0x0005AD04
	private void LateUpdate()
	{
		if (this.target != null)
		{
			base.transform.position = this.target.position;
			base.transform.rotation = this.target.rotation;
		}
	}

	// Token: 0x04000F86 RID: 3974
	private Transform target;
}
